package com.wanpinghui.wphlibrary.model.oauth.bean;

import retrofit2.http.PUT;

/***
 * 功能描述:用户基础信息
 * 作者:qiujialiu
 * 时间:2017/11/22
 ***/

public class UserInformation extends BaseUserBean{
    /**
     * "active": 1,           // 是否激活 0为未激活  1为激活
     * "type_display": "工程商",    // 用户类型显示
     * "black": false,             // 是否拉黑  true为拉黑
     * "status_display": "待审核",  // 审核状态显示
     * "half_price_paid": false,
     * "has_paid": false,          // 是否付费 true为付费
     * "level": 10,                // 用户等级 10铁牌 20 铜牌 30 银牌 40 金牌
     * "gender": 1,                // 性别
     * "mobile": "1306611111",     // 用户手机号
     * "id": 3316549,              // 用户id
     * "com": "",                  // 公司
     * "im_token": "",             // 网易云信token
     * "avatar": "",               // 头像
     * "level_display": "铁牌",     // 用户等级显示
     * "type": 100,                // 用户类型
     * "has_set_business": false,  // 是否已设置业务范围
     * "status": 10,              // 审核状态. 0-未认证   10-待审核  200-审核通过  400-审核未通过
     * "gender_display": "男",     // 性别显示
     * "nickname": "13066309355"   // 姓名
     */

    private int active;
    private String type_display;
    private boolean black;
    private String status_display;
    private boolean half_price_paid;
    private boolean has_paid;
    private int level;
    private String com;
    private String avatar;
    private String level_display;
    private int type;
    private boolean has_set_business;
    private int status;
    private String gender_display;
    private String addr;
    private String pos;
    private int credit;
    private int pass_cnt;
    private int pass_percent;
    private String phone_area_name;
    private String city;

    public boolean isPass(){
        return status == 200;
    }

    public boolean isMan(){
        return gender == 1;
    }

    public boolean isActive(){
        return  active == 1;
    }

    public boolean isBlack() {
        return black;
    }

    public void setBlack(boolean black) {
        this.black = black;
    }


    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getCom() {
        return com;
    }

    public void setCom(String com) {
        this.com = com;
    }

    public String getIm_token() {
        return im_token;
    }

    public void setIm_token(String im_token) {
        this.im_token = im_token;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getLevel_display() {
        return level_display;
    }

    public void setLevel_display(String level_display) {
        this.level_display = level_display;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isHas_set_business() {
        return has_set_business;
    }

    public void setHas_set_business(boolean has_set_business) {
        this.has_set_business = has_set_business;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * 是否完善个人信息
     * @return
     */
    public boolean isInfoWhole() {
        return type == 100;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public String getPos() {
        return pos;
    }

    public void setPos(String pos) {
        this.pos = pos;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public int getPass_cnt() {
        return pass_cnt;
    }

    public void setPass_cnt(int pass_cnt) {
        this.pass_cnt = pass_cnt;
    }

    public int getPass_percent() {
        return pass_percent;
    }

    public void setPass_percent(int pass_percent) {
        this.pass_percent = pass_percent;
    }

    public int getLevel() {
        return level;
    }

    public String getPhone_area_name() {
        return phone_area_name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}
